<?php
namespace app\store\controller;
use think\Controller;
use think\Session;
use think\Request;
use think\Lang;
class Base extends Controller
{


    public function _initialize(){
        error_reporting(E_ERROR | E_WARNING | E_PARSE);


        //判断是否登录
        $this->store_user = session( 'store_user' );
        if( !$this->store_user ){
            //未登录跳转到登录页面
            $this->redirect( 'login/index');
        }
        /*//未授权则先进行授权
        $wxInfo = cache( 'user_wx_' . $store_user['id']);
        if( !$wxInfo ){
            $this->redirect( 'login/index');
        }*/
    }






}
